package com.ssy.lingxi.platform.template.service.model.dto.web;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * SEO - 新增/修改 - DTO
 * @author fhj
 * @version 2.0.0
 * @date 2021/04/07
 */
@Data
public class SaveSeoDTO {

    @NotNull(message = "主键id不能为空", groups = {SaveSeoDTO.Update.class})
    @ApiModelProperty(value = "主键id")
    private Long id;

    @NotNull(message = "门户类型不能为空", groups = {SaveSeoDTO.Add.class, SaveSeoDTO.Update.class})
    @ApiModelProperty(value = "门户类型：1-店铺门户  2-渠道门户  3-采购门户  4-自营门户")
    private Integer doorType;

    @NotNull(message = "页面类型不能为空", groups = {SaveSeoDTO.Add.class, SaveSeoDTO.Update.class})
    @ApiModelProperty(value = "页面类型：1：首页；2：关于我们；3：行情资讯；")
    private Integer type;

    @ApiModelProperty(value = "页面名称")
    @NotEmpty(message = "页面名称不能为空", groups = {SaveSeoDTO.Add.class, SaveSeoDTO.Update.class})
    private String name;

    @ApiModelProperty(value = "访问链接")
    private String link;

    @NotEmpty(message = "Title不能为空", groups = {SaveSeoDTO.Add.class, SaveSeoDTO.Update.class})
    @ApiModelProperty(value = "Title")
    private String title;

    @NotEmpty(message = "Description不能为空", groups = {SaveSeoDTO.Add.class, SaveSeoDTO.Update.class})
    @ApiModelProperty(value = "Description")
    private String description;

    @NotEmpty(message = "Keywords不能为空", groups = {SaveSeoDTO.Add.class, SaveSeoDTO.Update.class})
    @ApiModelProperty(value = "Keywords")
    private String keywords;

    public interface Add {}
    public interface Update {}
}
